<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="../common/taglib.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>忘记密码</title>
    	
	<link rel="stylesheet" type="text/css" href='<c:url value="/css/login.css"/>'>
	<link rel="stylesheet" type="text/css" href='<c:url value="/css/footer.css"/>'>
    <link href="<c:url value="/css/bootstrap.css"/>" rel="stylesheet" type="text/css" >
        <script type="text/javascript" src="<c:url value="/js/jquery.min.js"/>"></script>
    <script type="text/javascript">
    	function forgetPwd(){
    		var mail = $('#mailbox').val();
    		$("#btn").attr("disabled", true);
    		$.ajax({
    			url:'<c:url value="/hr/forget"/>',
    			type:'POST',
    			cache:false,
    			data:{'mailbox':mail},
    			dataType:'json',
    			success:function(result){
    				alert(result.msg+',点击邮箱连接修改密码');
    			}
    		});
    	}
    </script>
  </head>

  <body>	
    <div class="container" >
    <div class="form-signin">
        注册邮箱：<input type="email" id="mailbox" name="mailbox" class="form-control"  required autofocus>               
        <button id="btn" class="btn btn-lg btn-primary btn-block" onclick="forgetPwd()" >提交</button> 
   </div>     
   </div>
        
   <jsp:include page="../common/footer.jsp"></jsp:include>
  </body>
</html>